<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>Introduction jQuery</title>
	<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
	<style type="text/css">
		.title {
			color:  #cc1010;
			border-bottom: 1px solid #ccc;
			background: #F1F1F1;
			padding: 10px;
		}
	</style>
</head>
<body>
	<div id="container">
		<h1 class="first">jQuery Selectors</h1>
		<h1>jQuery Selectors</h1>
		<h1>jQuery Selectors</h1>
		<h1>jQuery Selectors</h1>	
		
	</div>
	<script>
		$(document).ready(function(){
			//$('h1').css('color', '#CC1010'); //apply color all h1 tag
			//$('h1:first').css('color', '#CC1010'); // apply color first h1 
			//$('h1:odd').css('color', '#CC1010'); //apply all odd h1 start from 0
			//$('h1:nth-child(2n)').css('color', '#CC1010'); //apply nth-child
			
			// apply mult style 
			/*$('h1').css({
							color: '#CC1010',
							borderBottom: '1px solid #ccc',
							background: '#F1F1F1'
						});*/
			
			
			$('.first').addClass('title');
		});
	</script>
</body>
</html>